Cast Using a Custom XQuery Function
This page last changed on Feb 26, 2008.
Oracle Data Service Integrator Documentation > Data Services Developer's Guide How To Cast Using a Custom XQuery FunctionThis topic describes how to write a custom XQuery function to cast between elements of different data types in an update map. ExampleAn example of a custom XQuery cast function is one that casts from integer to string. Suppose the logical data service's return type uses xsd:integer for the TELEPHONE_NUMBER element, while the underlying data source uses xsd:string. Mapping from Integer to StringThe mapping between the two TELEPHONE_NUMBER elements is initially disabled. The value from the return type is something like 4155551212, which can easily be converted between xsd:integer and xsd:string. Check the type casting chart in the XQuery 1.0 specification to make sure the cast you want to perform is allowed.
To write a custom XQuery cast function:
See AlsoConceptsHow ToOther Resources
|
Document generated by Confluence on Jan 13, 2009 15:57 |